﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Users.WebSite.Register
{
	public partial class RegisterByEmail2 : PageBase
	{
		public string RegisterCompleteAccount;

		protected void Page_Load(object sender, EventArgs e)
		{
			RegisterCompleteAccount = Session["RegisterCompleteAccount"] as string;

			if (RegisterCompleteAccount == null) return;

			if (Session["RegisterSendActiveEmailCount"] == null)
			{
				IVerificationService vs = UsersSf.VerificationService;
				EmailVerification ev = vs.CreateEmailVerification(this.RegisterCompleteAccount, "register");
				Response.Write(ev.ActiveCode + ", " + ev.Email);
				Session["RegisterSendActiveEmailCount"] = 1;
			}
			else
			{// 防止刷新
				int registerSendActiveEmailCount = (int)Session["RegisterSendActiveEmailCount"];

			}
		}
	}
}